/**
 * 
 */
package orz.mikeneck.event.atnd;

import orz.mikeneck.event.Query;
import orz.mikeneck.event.SearchType;

/**
 * @author mike_neck
 *
 */
public enum AtndSearchType implements SearchType {
	/**
	 * Event Search API
	 */
	EVENT_SEARCH {
		/**
	     * @see orz.mikeneck.event.SearchType#getQueryClass()
	     */
        @Override
		public Class<? extends Query> getQueryClass() {
		    return AtndEventSearchQuery.class;
	    }

		/**
	     * @see orz.mikeneck.event.SearchType#getRequestUrl()
	     */
		@Override
        public
            String getRequestUrl() {
	        return "http://api.atnd.org/events/";
        }
	},
	/**
	 * Attendance Search API
	 */
	ATTENDANCE_SEARCH{
		/**
	     * @see orz.mikeneck.event.SearchType#getQueryClass()
	     */
        @Override
	    public Class<? extends Query> getQueryClass() {
		    return AtndAttendanceSearchQuery.class;
	    }

		/**
	     * @see orz.mikeneck.event.SearchType#getRequestUrl()
	     */
		@Override
        public
            String getRequestUrl() {
	        return "http://api.atnd.org/events/users/";
        }

	};
}
